package com.mj.haier.calc.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Properties specific to Micro Calc.
 * <p>
 * Properties are configured in the application.yml file.
 * See {@link io.github.jhipster.config.JHipsterProperties} for a good example.
 */
@ConfigurationProperties(prefix = "application", ignoreUnknownFields = false)
public class ApplicationProperties {

    private final Feign feign = new Feign();
    public Feign getFeign() {
        return feign;
    }

    public static class Feign {

        private String token = ApplicationDefaults.Feign.token;
        public String getToken() {
            return token;
        }
        public void setToken(String token) {
            this.token = token;
        }
    }
}
